﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;

namespace LAVAA.WEB
{
    public class RouteConfig
    {
        public static void RegisterRoutes(RouteCollection routes)
        {
            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

            routes.MapRoute(
            name: "AdministrationUser",
            url: "Administration/User/{action}/{id}",
            defaults: new { controller = "User", action = "Index", id = UrlParameter.Optional }
            );
            
            routes.MapRoute(
            name: "AdministrationUserGroup",
            url: "Administration/UserGroup/{action}/{id}",
            defaults: new { controller = "UserGroup", action = "Index", id = UrlParameter.Optional }
            );

            routes.MapRoute(
            name: "AdministrationActivityType",
            url: "Administration/ActivityType/{action}/{id}",
            defaults: new { controller = "ActivityType", action = "Index", id = UrlParameter.Optional }
            );
            
            routes.MapRoute(
            name: "AdministrationRewards",
            url: "Administration/Rewards/ListRewardTypes/{id}",
            defaults: new { controller = "Rewards", action = "ListRewardTypes", id = UrlParameter.Optional }
            );

            routes.MapRoute(
            name: "Default",
            url: "{controller}/{action}/{id}",
            defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);


        }
    }
}